{*
 * This file is part of the Agora distribution. 
 * Detailed copyright and licensing information can be found
 * in the gpl-3.0.txt file which should be included in the distribution.
 * 
 * @version		$Id: 3.0.14 Olympus 2010-09-28 rammstein4o $
 * @copyright  2007 - 2010 jVitals
 * @license   GPLv3 Open Source
 * @link       http://jvitals.com
 * @since      File available since initial release
 *}	

<form name="adminForm" method="POST">
	{$html->form->param('option','com_agora')}
	{$html->form->param('task','users')}
	{$html->form->param('action','save_group')}

	{$html->form->param('form[user_id]',$user_id)}

	<fieldset>
		<legend>##Group and role to add##</legend>
		* = ##User Already Added##
		<table class="admintable">
			<tbody>
				<tr>
					<td class="key">##Group##</td>
					<td>
						<select name="group_id[]" size="8" style="width: 200px" multiple >
							{foreach from=$groups item=group}
							<option value="{$group.id}">{$html->form->treename($group,0)}</option>
							{foreachelse}
							<option disabled="disabled">##No groups left##</option>
							{/foreach}
						</select>
					</td>
				</tr>
				{adminform->select var='role_id' caption="Role" keys=$roles selected=2}
				{adminform->text var='lic_id' caption='Attached license(ID)'}
				<tr>
					<td colspan="2" align="center">
						<input type="submit" value="##Submit##"/>
						<input type="button" value="##Cancel##" onclick="window.parent.document.getElementById('sbox-window').close();"/>
					</td>
				</tr>
			</tbody>
		</table>

	</fieldset>
</form>